from fastapi import APIRouter

from app.api.v1 import captcha, login_api, category, user_address_api,banner_api

# 创建主路由并添加/api前缀
api_router = APIRouter(prefix="/api", tags=["app端接口"])

# 包含各个模块的路由
api_router.include_router(captcha.router, tags=["验证码"])
api_router.include_router(login_api.router, prefix="/sms", tags=["短信接口"])
api_router.include_router(banner_api.router, prefix="/banner", tags=["轮播图"])
api_router.include_router(category.router, prefix="/category", tags=["分类"])
api_router.include_router(user_address_api.router,
                          prefix="/address",
                          tags=["收货地址"])
